﻿ using System;
using System.Collections.Generic;
using System.Linq;
 using System.Runtime.CompilerServices;
 using System.Text;
using System.Runtime.Serialization;
[assembly: InternalsVisibleTo("System.ServiceModel.Web")]

namespace WowDotNetAPI.Models
{
    [DataContract]
    public enum CharacterPowerType
    {
        [EnumMember(Value="focus")]
        FOCUS,
        [EnumMember(Value = "rage")]
        RAGE,
        [EnumMember(Value = "mana")]
        MANA,
        [EnumMember(Value = "energy")]
        ENERGY,
        [EnumMember(Value = "runicpower")]
        RUNICPOWER,
    }

    [DataContract]
    public class CharacterClassInfo
    {
        [DataMember(Name = "id")]
        public int Id { get; set; }

        [DataMember(Name = "mask")]
        public int Mask { get; set; }

        [DataMember(Name = "powerType")]
        internal string powerType { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        public CharacterPowerType PowerType { get { return (CharacterPowerType)Enum.Parse(typeof(CharacterPowerType), powerType, true); } }
    }
}
